package com.ruyuan.eshop.common.mapper.trade.snapshot;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruyuan.eshop.common.model.trade.snapshot.GoodsSnapshot;
import org.apache.ibatis.annotations.Param;

/**
 * 交易快照mapper
 * @author pwd
 * @version 1.0
 */

public interface GoodsSnapshotMapper extends BaseMapper<GoodsSnapshot> {

    /**
     * 根据id修改point值
     * @param point 商品使用积分
     * @param snapshotId 交易快照id
     */
    void updatePointById(@Param("point") Integer point, @Param("snapshotId") Long snapshotId);
}
